package com.cloudwise.monitoring_system.entity;

import java.util.Date;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (MonitorUnit)实体类
 *
 * @author makejava
 * @since 2021-05-28 10:53:33
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MonitorUnit implements Serializable {
    private static final long serialVersionUID = 256763999705610108L;
    /**
     * 监控项id
     */
    private Integer unitId;
    /**
     * 监控项的描述
     */
    private String unitName;
    /**
     * 父项的id
     */
    private Integer parentId;
    /**
     * 排序项
     */
    private Integer orderId;
    /**
     * 本监控项的所属层级
     */
    private String type;
    /**
     * 监控项上线阈值
     */
    private double max;
    /**
     * 监控项下线阈值
     */
    private double min;
    /**
     * 可见性(1可见，0不可见)
     */
    private String isVisible;
    /**
     * 创建人
     */
    private String createBy;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新人
     */
    private Date updateBy;
    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 备注
     */
    private String remark;

    @Override
    public String toString() {
        return "MonitorUnit{" +
                "unitId=" + unitId +
                ", unitName='" + unitName + '\'' +
                ", parentId=" + parentId +
                ", orderId=" + orderId +
                ", type='" + type + '\'' +
                ", max=" + max +
                ", min=" + min +
                ", isVisible='" + isVisible + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateBy=" + updateBy +
                ", updateTime=" + updateTime +
                ", remark='" + remark + '\'' +
                '}';
    }
}
